//
//  MEDefine.h
//  MapEditor
//
//  Created by Eric on 3/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef MapEditor_MEDefine_h
#define MapEditor_MEDefine_h

#define BODY_S_RECT 0
#define BODY_S_CIRCLE 1
#define BODY_S_POLYGON 2

#define EDIT_SHAPE_STATE_LINE 0
#define EDIT_SHAPE_STATE_RECT 1
#define EDIT_SHAPE_STATE_CIRCLE 2
#define EDIT_SHAPE_STATE_POLYGON 3


#define EDIT_SHAPE_STATE_MOVE 4


#define EDIT_SHAPE_SELECTED 255
#define EDIT_SHAPE_UNSELECTED 255 * 0.6
#define EDIT_SHAPE_CENTER ccp(480, 320)

#define PTM_RATIO 32
#define GRATIVE_DLF_X 0.f
#define GRATIVE_DLF_Y -10.f


#define T_EDIT_SPT_X 101
#define T_EDIT_SPT_Y 102
#define T_EDIT_SPT_R 103
#define T_EDIT_SPT_TAG0 104
#define T_EDIT_SPT_TAG1 105
#define T_EDIT_SPT_TAG2 106
#define T_EDIT_SPT_TAG3 107
#define T_EDIT_SPT_FLIPX 108
#define T_EDIT_SPT_FLIPY 109



#define T_EDIT_PROTOTYPE_SCALE 1
#define T_EDIT_PROTOTYPE_BODY_BOX2D 2
#define T_EDIT_PROTOTYPE_BODY_D 3
#define T_EDIT_PROTOTYPE_BODY_F 4
#define T_EDIT_PROTOTYPE_BODY_R 5
#define T_EDIT_PROTOTYPE_BODY_TYPE 6
#define T_EDIT_PROTOTYPE_BODY_SHAPE 7
#define T_EDIT_PROTOTYPE_BODY_SOFT_ISSOFT 8
#define T_EDIT_PROTOTYPE_BODY_SOFT_SEMENTSNUM 9
#define T_EDIT_PROTOTYPE_BODY_SOFT_FRQUENCY_OUT 10
#define T_EDIT_PROTOTYPE_BODY_SOFT_FRQUENCY_IN 11
#define T_EDIT_PROTOTYPE_BODY_SOFT_DAMPING_OUT 12
#define T_EDIT_PROTOTYPE_BODY_SOFT_DAMPING_IN 13

#define T_EDIT_PROTOTYPE_FILETYPE 14
#define T_EDIT_PROTOTYPE_CLASSNAME 15

#define T_EDIT_PROTOTYPE_BODY_SOFT_INNERRATEX 16
#define T_EDIT_PROTOTYPE_BODY_SOFT_INNERRATEY 17

#define T_EDIT_GLVIEW_S 1
#define T_EDIT_GLVIEW_W 2
#define T_EDIT_GLVIEW_H 3

#define DFT_SPT_SCALE 1
#define DFT_BODY_DENSITY 1
#define DFT_BODY_FRICTION .5f
#define DFT_BODY_RESTITUTION 0


#define DFT_SOFT_SEGMENT_NUM 16
#define DFT_SOFT_HZ_OUT 30
#define DFT_SOFT_HZ_IN 10
#define DFT_SOFT_DP_OUT .5f
#define DFT_SOFT_DP_IN .5f
#define DFT_SOFT_INNERRATEX .5f
#define DFT_SOFT_INNERRATEY .5f
#endif




